<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Title</title>
</head>
<body>
[[${name}]] <p th:text="${name}"></p><br>
<hr>
支持html
[(${name})] <p th:utext="${name}"></p><br>
<hr>
<hr>

<p th:each="addr:${addrs}">
    [[${addr}]]
</p>
<hr>
<ul>
    <li th:each="i:${#numbers.sequence(1,5)}">[[${i}]]</li>
</ul>
<hr>
<script th:inline="javascript">
    let id = [[${name}]]
    /* [[${age?:11}]] 如果没有age变量则默认值设置为11*/
    let n = [[${age?:11}]]
    alert(id)

</script>
</body>
</html>
